package cn.o.app.db;

import cn.o.app.queue.IQueueItemListener;

public interface IDbTaskListener<INPUT, OUTPUT> extends
		IQueueItemListener<IDbTask<INPUT, OUTPUT>> {

	public void onComplete(IDbTask<INPUT, OUTPUT> task, OUTPUT output);

	public OUTPUT doInBackground(IDbTask<INPUT, OUTPUT> task, INPUT input)
			throws Exception;

}
